package builder;

import builder.base.Child;

/**
 * @author: whh
 * @Date: 2021/6/8
 * @Description:
 */
public class ChildBuilder {
    Child child;
    public ChildBuilder(){
        child = new Child();
    }
    public void buildBody(){
        child.setBody("身穿蓝色衣服");
    }
    public void buildHead(){
        child.setHead("头戴绿色帽子");
    }
    public void buildFoot(){
        child.setFoot("脚穿43码的鞋子");
    }
    public Child buildChild(){
        buildHead();
        buildBody();
        buildFoot();
        return child;
    }
}
